package com.xiaoshuidi.cloud.module.finance.enums.voucher;

import lombok.Getter;

import java.math.BigDecimal;

/**
	* @author dujianguang
	*/
@Getter
public enum FinanceVoucherIsTaxFeeTypeEnum {
		TOTAL_FEE_TYPE_0("2221.01.05.03","租金税额","应交税费_应交增值税_销项税额_9%",0.09),
		TOTAL_FEE_TYPE_2("2221.01.05.02","管理费税额","应交税费_应交增值税_销项税额_6%",0.06),
		TOTAL_FEE_TYPE_3("2221.20.02","水费税额","应交税费_简易计税_3%",0.03),
		TOTAL_FEE_TYPE_4("2221.01.05.04","电费税额","应交税费_应交增值税_销项税额_13%",0.13),
		TOTAL_FEE_TYPE_5("2221.01.05.02","其他零星收入税额","应交税费_应交增值税_销项税额_6%",0.06);

		private String code;
		private String feeName;
		private String remark;
		private Double taxRate;


		FinanceVoucherIsTaxFeeTypeEnum(String code, String feeName, String remark,Double taxRate) {
				this.code = code;
				this.feeName = feeName;
				this.remark = remark;
				this.taxRate = taxRate;
		}

		public static FinanceVoucherIsTaxFeeTypeEnum find(String feeName) {
				for (FinanceVoucherIsTaxFeeTypeEnum value : values()) {
						if (value.getFeeName().equals(feeName)) {
								return value;
						}
				}
				return null;
		}
}
